package com.awanp3.nimbus.base.domain.vo;

import com.awanp3.nimbus.base.domain.BaseLocation;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.awanp3.nimbus.common.excel.annotation.ExcelDictFormat;
import com.awanp3.nimbus.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 库位信息视图对象 base_location
 *
 * @author 20014170
 * @date 2025-09-05
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BaseLocation.class)
public class BaseLocationVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 库位ID
     */
    @ExcelProperty(value = "库位ID")
    private Long locationId;

    /**
     * 库位编码
     */
    @ExcelProperty(value = "库位编码")
    private String locationCode;

    /**
     * 库位名称
     */
    @ExcelProperty(value = "库位名称")
    private String locationName;

    /**
     * 库位类型
     */
    @ExcelProperty(value = "库位类型")
    private String locationType;

    /**
     * 工厂编码
     */
    @ExcelProperty(value = "工厂编码")
    private String plantCode;

    /**
     * 长度
     */
    @ExcelProperty(value = "长度")
    private Float length;

    /**
     * 宽度
     */
    @ExcelProperty(value = "宽度")
    private Float width;

    /**
     * 高度
     */
    @ExcelProperty(value = "高度")
    private Float height;

    /**
     * 体积上限
     */
    @ExcelProperty(value = "体积上限")
    private Float volumeLimit;

    /**
     * 重量上限
     */
    @ExcelProperty(value = "重量上限")
    private Float weightLimit;

    /**
     * 箱数上限
     */
    @ExcelProperty(value = "箱数上限")
    private Integer boxLimit;

    /**
     * 件数上限
     */
    @ExcelProperty(value = "件数上限")
    private Integer skuLimit;

    /**
     * 托盘上限
     */
    @ExcelProperty(value = "托盘上限")
    private Integer palletLimit;

    /**
     * 状态（0正常 1停用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
